import Vue from 'vue';
import Router from 'vue-router';


import Home from '@/views/Home.vue';
import shelf from '@/views/shelf.vue';
import category from '@/views/category.vue';
import reader from '@/views/reader.vue';
import shelfManage from '@/views/shelfManage.vue';
import viewPort from '@/views/viewPort.vue';

Vue.use(Router);

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            name: 'Home',
            component: Home, // 主页组件
        },

        {
            path: '/shelf',
            name: 'shelf',
            component: shelf, //  我的书架
        },

        {
            path: '/category',
            name: 'category',
            component: category, //  分类
        },

        {
            path: '/reader',
            name: 'reader',
            component: reader, //  阅读页
        },

        {
            path: '/shelfManage',
            name: 'shelfManage',
            component: shelfManage, //  书架管理
        },

        {
            path: '/viewPort',
            name: 'viewPort',
            component: viewPort, //  转换器
        },


    ],
});
